#include "PBMsgCallBackDispatcher.h"



PBMsgCallBackDispatcher::PBMsgCallBackDispatcher()
{
}


PBMsgCallBackDispatcher::~PBMsgCallBackDispatcher()
{
}

void PBMsgCallBackDispatcher::DispatchMessage(google::protobuf::Message* msg)
{
	MapPBDescriptorToCallBack::iterator it = _mapCallbacks.find(msg->GetDescriptor());
	if (it != _mapCallbacks.end())
	{
		
		it->second->onMessage(msg);
	}
}
